<script setup lang="ts">
import { RouterView } from 'vue-router'
import HeaderView from "@/components/Base/HeaderView.vue"
import LeftNavView from "@/components/Base/LeftNavView.vue"

</script>

<template>
  <div class="main">
    <header-view></header-view>
    <div class="main-body">
      <left-nav-view :is-collapse="false"></left-nav-view>
      <div class="body">
        <RouterView />
      </div>
    </div>
  </div>
</template>

<style scoped lang="scss">
.main {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;


  &-body {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow: hidden;

    .zw-collapse {
      width: 20px;
      display: flex;
      justify-content: center;
      border-right: 1px solid v.$border-color;
    }

    .body {
      flex: 1;
      overflow: hidden;
    }
  }

}
</style>
